package com.example.hanfu_bk.mapper;

import com.example.hanfu_bk.pojo.Dynasty;
import com.example.hanfu_bk.pojo.Hanfu;
import com.example.hanfu_bk.pojo.StoryBox;
import com.example.hanfu_bk.pojo.Swiper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface Home {
    //获取轮播图图片链接列表
    @Select("select * from swiper_list")
    List<Swiper> selectAlSwiper();
    //获取故事框列表
    @Select("select * from story_list")
    List<StoryBox> selectBox();
    //获取朝代信息
    @Select("select * from dynasty where id = #{id}")
    Dynasty selectDynasty(int id);
    //获取故事的内容
    @Select("select content from story_list where id=#{id}")
    String selectContentById(int id);
}
